from selenium import webdriver
import time

from selenium.webdriver.common.by import By

driver = webdriver.Chrome()

driver.get("http://www.tpshop.com/index.php/Home/user/login.html")
time.sleep(3)

# driver.find_element(By.NAME,"wd").send_keys("原神赚了多少钱")
# driver.find_element(By.ID,"su").click()
# driver.find_element(By.PARTIAL_LINK_TEXT,"黄埔军校").click()
driver.find_element(By.ID,"username").send_keys("15632265444")
driver.find_element(By.ID,"password").send_keys("123456")
driver.find_element(By.ID,"verify_code").send_keys("8888")
driver.find_element(By.CLASS_NAME,"J-login-submit").click()

time.sleep(10)

driver.quit()























